package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.WmsWarehouseMaterialMoveMapper;
import com.ruoyi.domain.WmsWarehouseMaterialMove;
import com.ruoyi.service.IWmsWarehouseMaterialMoveService;

/**
 * 移库信息Service业务层处理
 * 
 * @author yinqing
 * @date 2025-06-13
 */
@Service
public class WmsWarehouseMaterialMoveServiceImpl implements IWmsWarehouseMaterialMoveService 
{
    @Autowired
    private WmsWarehouseMaterialMoveMapper wmsWarehouseMaterialMoveMapper;

    /**
     * 查询移库信息
     * 
     * @param id 移库信息主键
     * @return 移库信息
     */
    @Override
    public WmsWarehouseMaterialMove selectWmsWarehouseMaterialMoveById(Long id)
    {
        return wmsWarehouseMaterialMoveMapper.selectWmsWarehouseMaterialMoveById(id);
    }

    /**
     * 查询移库信息列表
     * 
     * @param wmsWarehouseMaterialMove 移库信息
     * @return 移库信息
     */
    @Override
    public List<WmsWarehouseMaterialMove> selectWmsWarehouseMaterialMoveList(WmsWarehouseMaterialMove wmsWarehouseMaterialMove)
    {
        return wmsWarehouseMaterialMoveMapper.selectWmsWarehouseMaterialMoveList(wmsWarehouseMaterialMove);
    }

    /**
     * 新增移库信息
     * 
     * @param wmsWarehouseMaterialMove 移库信息
     * @return 结果
     */
    @Override
    public int insertWmsWarehouseMaterialMove(WmsWarehouseMaterialMove wmsWarehouseMaterialMove)
    {
        return wmsWarehouseMaterialMoveMapper.insertWmsWarehouseMaterialMove(wmsWarehouseMaterialMove);
    }

    /**
     * 修改移库信息
     * 
     * @param wmsWarehouseMaterialMove 移库信息
     * @return 结果
     */
    @Override
    public int updateWmsWarehouseMaterialMove(WmsWarehouseMaterialMove wmsWarehouseMaterialMove)
    {
        return wmsWarehouseMaterialMoveMapper.updateWmsWarehouseMaterialMove(wmsWarehouseMaterialMove);
    }

    /**
     * 批量删除移库信息
     * 
     * @param ids 需要删除的移库信息主键
     * @return 结果
     */
    @Override
    public int deleteWmsWarehouseMaterialMoveByIds(Long[] ids)
    {
        return wmsWarehouseMaterialMoveMapper.deleteWmsWarehouseMaterialMoveByIds(ids);
    }

    /**
     * 删除移库信息信息
     * 
     * @param id 移库信息主键
     * @return 结果
     */
    @Override
    public int deleteWmsWarehouseMaterialMoveById(Long id)
    {
        return wmsWarehouseMaterialMoveMapper.deleteWmsWarehouseMaterialMoveById(id);
    }
}
